﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum LotteryTypeType
    {
        /// <summary>
        /// 时时彩
        /// </summary>
        SSC=1,
        /// <summary>
        /// 11选5
        /// </summary>
        TC11X5=2,
        /// <summary>
        /// 北就快乐8
        /// </summary>
        BJKL8=3,
        /// <summary>
        /// 幸运大转盘
        /// </summary>
        LuckyTT=4,
        /// <summary>
        /// 3D/排列3
        /// </summary>
        PL3D=5,
        /// <summary>
        /// 广东好彩1
        /// </summary>
        HaoCai1=6,
        /// <summary>
        /// 时时乐
        /// </summary>
        SSL=7,
        /// <summary>
        /// 广东快乐十分
        /// </summary>
        GDKLSF=8,

    }
    public static class LotteryTypeTypeEX
    {
        /// <summary>
        /// 用于获取奖金/反点设置
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static LotteryType GetDefaultLottery(this LotteryTypeType type)
        {
            switch (type)
            {
                case LotteryTypeType.SSC:
                    return LotteryType.CQSSC;
                case LotteryTypeType.PL3D:
                    return LotteryType.FC3D;
                case LotteryTypeType.LuckyTT:
                    return LotteryType.LuckyTT;
                case LotteryTypeType.BJKL8:
                    return LotteryType.BJKL8;
                case LotteryTypeType.TC11X5:
                    return LotteryType.TC11X5;
                case LotteryTypeType.HaoCai1:
                    return LotteryType.HaoCai1;
                case LotteryTypeType.SSL:
                    return LotteryType.SHSSL;
                case LotteryTypeType.GDKLSF:
                    return LotteryType.GDKLSF;
                default:
                    throw new ArgumentOutOfRangeException("无效的彩种类型");
            }
        }
    }
}
